package movee.io.cmd.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 与cmd-service平台交互的接口
 *
 * @author movee
 */
@FeignClient(value = "cmd-service", contextId = "cmd-service-read", configuration = CmdServiceReadFeignConfig.class,
        path = "/api/1.0/commands")
public interface CmdServiceReadFeign {

    @GetMapping("/result/{uniqueId}")
    CmdEchoDto getCmdResult(@PathVariable(value = "uniqueId") String uniqueId);

}
